.sortableColumn {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
  
  &.sortableColumnLeft {
    justify-content: flex-start;
  }
  
  &.sortableColumnCenter {
    justify-content: center;
  }
  
  &.sortableColumnRight {
    justify-content: flex-end;
  }
  
  &:hover {
    .sortIcons {
      opacity: 1;
    }
  }
  
  &.sortableColumnActive {
    color: var(--td-brand-color);
    
    .sortIcons {
      opacity: 1;
    }
  }
}

.sortableColumnLabel {
  justify-content: center;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sortIcons {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  min-width: 16px;
}

.sortIcon {
  width: 16px;
  height: 16px;
  color: currentColor;
  transition: all 0.2s ease;
  cursor: pointer;
  
  &:hover {
    color: var(--td-brand-color);
    transform: scale(1.1);
  }
  
  &.sortIconUp {
    margin-bottom: -2px;
  }
  
  &.sortIconDown {
    margin-top: -2px;
  }
  
  &.sortIconActive {
    color: var(--td-brand-color);
    transform: scale(1.1);
    opacity: 1;
  }
}

// 响应式设计
@media (max-width: 768px) {
  .sortableColumn {
    gap: 2px;
    padding: 2px 4px;
  }
  
  .sortIcon {
    width: 14px;
    height: 14px;
  }
}

// 深色主题适配
@media (prefers-color-scheme: dark) {
  .sortableColumn {
    &:hover {
      background-color: var(--td-fill-color-dark);
    }
  }
}

// 高对比度模式
@media (prefers-contrast: high) {
  .sortableColumn {
    border: 1px solid transparent;
    
    &:hover {
      border-color: var(--td-brand-color);
    }
    
    &.sortableColumnActive {
      border-color: var(--td-brand-color);
    }
  }
}

// 动画效果
@keyframes sortIconPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.sortIconActive {
  animation: sortIconPulse 0.3s ease-in-out;
}

// 焦点状态（无障碍支持）
.sortableColumn:focus-visible {
  outline: 2px solid var(--td-brand-color);
  outline-offset: 2px;
}

// 禁用状态
.sortableColumnDisabled {
  cursor: not-allowed;
  opacity: 0.5;
  
  &:hover {
    background-color: transparent;
    color: inherit;
  }
}